package com.foreknow.elm.service;

import com.foreknow.elm.po.Orders;

import java.util.List;

public interface OrdersService {
    /**
     * 创建订单
     * @param orders
     * @return
     */
    public int createOrders(Orders orders);

    /**
     * 根据orderId查询订单信息
     * @param orderId
     * @return 建立Orders与Business关联
     * @throws Exception
     */
    public Orders getOrdersById(Integer orderId) ;

    /**
     * 根据用户的编号查询订单列表
     * @param userId
     * @return 建立Orders与Business关联
     * @throws Exception
     */
    public List<Orders> listOrdersByUserId(String userId);
}
